﻿using Nest;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Wicture.EPC.OnlineQueryProxy.Models.ES;

namespace Wicture.EPC.OnlineQueryProxy.Services.ES
{
    public interface IESSearchService
    {
        Task<ISearchResponse<T>> Search<T>(ESQueryRequest queryRequest) where T : class;
        Task<long> Count<T>(ESQueryRequest queryRequest) where T : class;
    }
}
